package com.gsoe.judge.client;


import com.gsoe.base.model.Result;
import com.gsoe.dto.CheckProblemAnswerDTO;
import com.gsoe.dto.UpdateRegisterUserScoreDTO;
import com.gsoe.vo.JudgeVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "problem-api")
public interface ProblemClient {
    @PostMapping("/problem/checkProblemAnswer")
    public Result<JudgeVO> checkProblemAnswer(@RequestBody CheckProblemAnswerDTO problemParamDTO);

    @GetMapping("/problem/test/getTextRemainingTime/{textId}")
    public Result<Long> getTextRemainingTime(@PathVariable(value = "textId") Long textId);

    @GetMapping("/problem/exam/getExamRemainingTime/{examId}/{userId}")
    public Result<Long> getExamRemainingTime(@PathVariable(value = "examId") Long examId, @PathVariable(value = "userId") Long userId);
}